{% extends 'extends/base.html' %}
{% block base_body %}

<body class="layout-fixed layout-navbar-fixed">

  <div class="wrapper">

    <aside class="main-sidebar sidebar-dark-primary elevation-4"><ul class="nav nav-pills nav-sidebar flex-column">
        {% with items = [
            {'icon': 'fas fa-home', 'text': '主页', 'link': '#'},
            {'icon': 'fas fa-wallet', 'text': '个人设置', 'link':'#'},
            {'icon': 'fas fa-cog', 'text': '我的喜欢', 'link': '#'},
            {'icon': 'fas fa-cog', 'text': '帖子发布', 'link':'#'},
            {'icon': 'fas fa-cog', 'text': '我的帖子', 'link': '#'},
            {'icon': 'fas fa-cog', 'text': '审核', 'link': '#'}
        ] %}

        {% for item in items %}
        <li class="nav-item"><a href="{{ item.link }}" class="nav-link"><i class="nav-icon {{ item.icon }}"></i><p>{{ item.text }}</p></a></li>
    {% endfor %}{% endwith %}</ul></aside>

    <nav class="main-header navbar navbar-expand navbar-white navbar-light"><ul class="navbar-nav">
          <li class="nav-item"><a class="nav-link" href="#" role="button" onclick="window.history.back();"><i class="fas fa-arrow-left"></i></a></li>
          <li class="nav-item"><a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a></li>
    </ul></nav>

  <div class="content-wrapper"><section class="content">{% include 'include/flash.html' %}{% block base_after_login_main %}{% endblock %}</section></div>

  </div>

<script>$(document).ready(function() {$('body').toggleClass('sidebar-collapse');});</script>

</body>
{% endblock %}